From edeed3fdc125132762f70ee6e0838d1211959769 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sun, 26 Aug 2018 23:19:35 +0200 Subject: [PATCH] babl: move BABL_ALPHA_FLOOR to public babl header --- babl/babl.h | 6 ++++++ babl/base/util.h | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/babl/babl.h b/babl/babl.h index 2e0735d..5a7ca7e 100644 --- a/babl/babl.h +++ b/babl/babl.h @@ -584,6 +584,12 @@ babl_space_from_rgbxyz_matrix (const char *name, */ const char * babl_format_get_encoding (const Babl *babl); +/* values below this are stored premultiplied with this value, + * it can also be used as a generic alpha zero epsilon in GEGL + * + */ +#define BABL_ALPHA_FLOOR (1/65536.0) + #ifdef __cplusplus } #endif diff --git a/babl/base/util.h b/babl/base/util.h index 4d9f536..b16840e 100644 --- a/babl/base/util.h +++ b/babl/base/util.h @@ -30,8 +30,6 @@ */ #define BABL_ALPHA_THRESHOLD 0.000000152590219 - /* values below this are stored premultiplied with this value */ -#define BABL_ALPHA_FLOOR (1/65536.0) #define BABL_PLANAR_SANITY \ { \ -- 2.30.2